Skip to content

Fix Python plugin venv loading#839

Merged
mcserep merged 1 commit intoEricsson:masterfrom
barnabasdomozi:pythonplugin_fix_venv
Mar 25, 2026
Merged

Fix Python plugin venv loading#839
mcserep merged 1 commit intoEricsson:masterfrom
barnabasdomozi:pythonplugin_fix_venv

Conversation

@barnabasdomozi
Copy link
Collaborator

@barnabasdomozi barnabasdomozi commented Mar 18, 2026

Changes:

  • Updated the Python parser's dependencies to the latest version since
    newer Python versions require a more recent version of the Jedi
    parsing library to load the Python virtual environment (venv).

  • Minor fix: failing to load a virtual environment
    is a major misconfiguration issue, so the parser now exits
    with and error.

  • Removed PYBuiltin test case: these test cases have been flaky
    for some time, especially after the library version updates.
    Since whether a node is built-in is only shown in the info tree,
    this feature is not critical and was implemented back then as a
    nice-to-have.

Changes:
- Updated the Python parser's dependencies to the latest version since
newer Python versions require a more recent version of the Jedi
parsing library to load the Python virtual environment (venv).

- Minor fix: failing to load a virtual environment
is a major misconfiguration issue, so the parser now exits
with and error.

- Removed PYBuiltin test case: these test cases have been flaky
for some time, especially after the library version updates.
Since whether a node is built-in is only shown in the info tree,
this feature is not critical and was implemented back then as a
nice-to-have.
@barnabasdomozi barnabasdomozi force-pushed the pythonplugin_fix_venv branch from fbc8307 to fd009ea Compare March 18, 2026 17:31
@barnabasdomozi barnabasdomozi self-assigned this Mar 18, 2026
@barnabasdomozi barnabasdomozi added Kind: Bug ⚠️ Plugin: Python Issues related to the parsing and presentation of Python projects. Target: Parser labels Mar 18, 2026
@mcserep mcserep self-requested a review March 25, 2026 06:03
Copy link
Collaborator

@mcserep mcserep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removed PYBuiltin test cases raise a concern for me, this is not the way to get around a bug which we do not understand completely.

We can merge this, so the CI won't fail on these, but I have opened a separate ticket #843 for it for later evaluation.

@mcserep mcserep merged commit d01f3ec into Ericsson:master Mar 25, 2026
14 checks passed
@mcserep mcserep added this to Lab and Roadmap Mar 25, 2026
@mcserep mcserep added this to the Upcoming Release milestone Mar 25, 2026
@github-project-automation github-project-automation bot moved this to In progress in Lab Mar 25, 2026
@github-project-automation github-project-automation bot moved this from In progress to Done in Roadmap Mar 25, 2026
@github-project-automation github-project-automation bot moved this to In progress in Roadmap Mar 25, 2026
@github-project-automation github-project-automation bot moved this from In progress to Done in Lab Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Kind: Bug ⚠️ Plugin: Python Issues related to the parsing and presentation of Python projects. Target: Parser

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants